<h2> <?= $usertitle ?> </h2>

<?php foreach($userlist as $item):?>

<div class="user">
<table>
<tr>
<td style="width: 100%;" onclick="showProfile('<?= $item['user_id']; ?>');">
<span class="title-user" ><?= $item['nickname'];?></span>
</td>
<td>
<?php if ($this->auth->has_rights_to("edit", "user", $item['user_id'])): ?>
<img class="action" onclick="update_content('<?php echo site_url("user/edit/".$item['user_id']); ?>')" alt="Edit User" src="<?= base_url();?>img/edit.png" />
</td>
<?php endif; ?>
</tr>
</table>
</div>

<?php endforeach;?>

<?= $pagination ?>

<div id="infos">

  <h3>Infos</h3>

  	User infos:
	<div id="details-user" class="details" style="display:none;"> </div>

</div>